Dual-function cryptographic functions
This section describes dual-function cryptographic functions.
Note
ProtectToolkit-C provides the following functions to perform two cryptographic operations “simultaneously” within a session. These functions are provided so as to avoid unnecessarily passing data back and forth to and from a token.
C_DigestEncryptUpdate
This function operates as specified in PKCS#11.
Synopsis
C_DigestEncryptUpdate(
CK_SESSION_HANDLE hSession,
CK_BYTE_PTR pPart,
CK_ULONG ulPartLen,
CK_BYTE_PTR pEncryptedPart,
CK_ULONG_PTR pulEncryptedPartLen
);
C_DecryptDigestUpdate
This function operates as specified in PKCS#11.
Synopsis
C_DecryptDigestUpdate(CK_SESSION_HANDLE hSession,
CK_BYTE_PTR pEncryptedPart,
CK_ULONG ulEncryptedPartLen,
CK_BYTE_PTR pPart,CK_ULONG_PTR pulPartLen
);
C_SignEncryptUpdate
This function operates as specified in PKCS#11.
Synopsis
C_SignEncryptUpdate(CK_SESSION_HANDLE hSession,
CK_BYTE_PTR pPart,
CK_ULONG ulPartLen,CK_BYTE_PTR pEncryptedPart,
CK_ULONG_PTR pulEncryptedPartLen
);
C_DecryptVerifyUpdate
This function operates as specified in PKCS#11.
Synopsis
C_DecryptVerifyUpdate(CK_SESSION_HANDLE hSession,
CK_BYTE_PTR pEncryptedPart,
CK_ULONG ulEncryptedPartLen,
CK_BYTE_PTR pPart,CK_ULONG_PTR pulPartLen
);